﻿using Microsoft.Silverlight.Testing;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SilverMindMap.Core.Model;
using SilverMindMap.Core.Tests.TestHelpers;

namespace SilverMindMap.Core.Tests.Model
{
    [TestClass]
    public class NodeLinkTests 
    {
        [TestMethod]
        [Tag(TestTags.BVT)]
        public void ConstructorAndNodesTest()
        {
            var node1 = new Node();
            var node2 = new Node();

            var link = new Link(node1, node2);
            Assert.AreSame(node1, link.FirstNode);
            Assert.AreSame(node2, link.SecondNode);
        }
    }
}
